<?php
include('../includes/rubriks.php');
if($_GET['subdivDivision'])
{
	//echo $_GET['cityRegion'];
	//$subdivDivision=iconv("UTF-8", "WINDOWS-1251", $_GET['subdivDivision']);
	if(!$subdivDivision)$subdivDivision=$_GET['subdivDivision'];
	//$subdiv=iconv("UTF-8", "WINDOWS-1251", $_GET['subdiv']);
	if(!$subdiv)$subdiv=$_GET['subdiv'];
	echo ('
	<div class="subdivRes">
	');
	for($i=0; $i<count($divises[$subdivDivision]); $i++)
	{
		if($divises[$subdivDivision][$i]==$subdiv)continue;
		echo ('
		<div class="aSubdivRes" val="'.$divises[$subdivDivision][$i].'">'.$divises[$subdivDivision][$i].'</div>
		');
	}
	echo ('
	</div>
	');
}
if($_GET['division'])
{
	$curDivision=iconv("UTF-8", "WINDOWS-1251", $_GET['division']);
	if(!$curDivision)$curDivision=$_GET['division'];
	echo ('
	<div class="divisionRes">
	');
	foreach($divises as $divisionKey=>$divisionSubdivs)
	{
		if($divisionKey==$curDivision)continue;
		echo ('
		<div class="divisions">'.$divisionKey.'</div>
		');
	}
	echo ('
	</div>
	');
}
?>